widget-factory: Move app menu contents to primary menu
authorJeremy Bicha <jbicha@ubuntu.com>
Mon, 1 Oct 2018 00:21:45 +0000 (20:21 -0400)
committerJeremy Bicha <jbicha@ubuntu.com>
Mon, 1 Oct 2018 00:43:41 +0000 (20:43 -0400)
GNOME Shell 3.32 will remove support for the app menu
so we need to move its contents to the primary (hamburger)
menu.

widget-factory already had a primary menu.

The only item in the app menu was About.

https://gitlab.gnome.org/GNOME/Initiatives/issues/4

demos/widget-factory/menus.ui [deleted file]
demos/widget-factory/widget-factory.gresource.xml
demos/widget-factory/widget-factory.ui

diff --git a/demos/widget-factory/menus.ui b/demos/widget-factory/menus.ui
deleted file mode 100644 (file)
index d3eb855..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
-  <!-- interface-requires gtk+ 3.0 -->
-  <menu id="app-menu">
-    <section>
-      <item>
-        <attribute name="label" translatable="yes">About</attribute>
-        <attribute name="action">app.about</attribute>
-      </item>
-    </section>
-    <section>
-      <item>
-        <attribute name="label" translatable="yes">_Quit</attribute>
-        <attribute name="action">app.quit</attribute>
-        <attribute name="accel">&lt;Primary&gt;q</attribute>
-      </item>
-    </section>
-  </menu>
-</interface>
index c709f5989cb33233784014d1d47f62b733464c04..fb77d0ab71d53f97114125b6c594db4edafdcee5 100644 (file)
@@ -6,9 +6,6 @@
   <gresource prefix="/org/gtk/WidgetFactory">
     <file>widget-factory.css</file>
   </gresource>
-  <gresource prefix="/org/gtk/WidgetFactory/gtk">
-    <file preprocess="xml-stripblanks">menus.ui</file>
-  </gresource>
   <gresource prefix="/org/gtk/WidgetFactory/gtk">
     <file preprocess="xml-stripblanks">help-overlay.ui</file>
   </gresource>
index 55de27533f1468f538897b567a7467a400f52c3b..bc31742d9f7408b4201e508a9b999b5c3806c1bf 100644 (file)
         <attribute name="action">win.transition</attribute>
       </item>
     </section>
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">About</attribute>
+        <attribute name="action">app.about</attribute>
+      </item>
+    </section>
   </menu>
   <menu id="dinner_menu">
     <section>